package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zksk.common.core.web.domain.BaseEntity;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 订单签订协议表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-15
 */
@Data
@Accessors(chain = true)
@TableName("platform_fact_orders_agreement")
@ApiModel(value = "OrdersAgreement对象", description = "订单签订协议表")
public class OrdersAgreement extends BaseEntity {

    @ApiModelProperty("表主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @ApiModelProperty("协议编号")
    @TableField("agreement_id")
    private Long agreementId;

    @ApiModelProperty("协议名称")
    @TableField("agreement_name")
    private String agreementName;

    @ApiModelProperty("协议类型")
    @TableField("agreement_type")
    private String agreementType;

    @ApiModelProperty("存储路径")
    @TableField("path")
    private String path;

    @ApiModelProperty("签订时间")
    @TableField("sign_time")
    private LocalDateTime signTime;

    @ApiModelProperty("协议状态")
    @TableField("agreement_status")
    private Integer agreementStatus;


    public static final String ID = "id";

    public static final String AGREEMENT_ID = "agreement_id";

    public static final String AGREEMENT_NAME = "agreement_name";

    public static final String AGREEMENT_TYPE = "agreement_type";

    public static final String PATH = "path";

    public static final String SIGN_TIME = "sign_time";

    public static final String AGREEMENT_STATUS = "agreement_status";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
